
package fr.miage.orleans.aar.modele;

/**
 *
 * @author Steve Cancès <steve.cances@gmail.com>
 */
public enum EtatTournoi {
    EN_PREPARATION ("En préparation"),
    EN_COURS ("En cours"),
    TERMINE ("Terminé");
    
    private final String name;       

    private EtatTournoi(String s) {
        name = s;
    }

    public boolean equalsName(String otherName){
        return (otherName == null)? false:name.equals(otherName);
    }

    @Override
    public String toString(){
       return name;
    }
}
